package com.taotao.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taotao.common.TreeResult;
import com.taotao.service.ItemCatService;

@Controller
@RequestMapping(value="/item/cat")
public class ItemCatController {
	@Autowired
	private ItemCatService itemCatService;
	
	@RequestMapping("/list")
	@ResponseBody
	public List<TreeResult> getItemCat(@RequestParam(defaultValue="0") long id){
		return itemCatService.getItemCatList(id);
	}
}
